home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / Think Class Libraries / CHyperText 1.2 / CHyperText.ReadMe < prev    next >
Encoding:
Text File  |  1994-11-30  |  1.7 KB  |  39 lines  |  [TEXT/KAHL]

  1. CHyperText 1.2  By Martin R. Wachter
  2.  
  3. CHyperText is a subclass of CStyleText which provides TCL with support for
  4. HyperText similar to the hypertext features in THINK Reference and Mosaic.
  5.  
  6. CHyperText can stylize certain "hyperwords" on the fly, which are contained
  7. in a CStringArray.  These words become stylized in bold + underline to distinguish
  8. them from the rest of the text as hyperwords.  You may want to pre-stylize your
  9. hyperwords in ResEdit or Resorcerer© to speed up your final app. Remember to NOT
  10. set the itsHyperList member if you do this, or your TEXT will be stylized twice.
  11.  
  12. Clicking on a hyperword, causes the hyper word to flash, thus signaling to 
  13. the user that they have successfully click a hyperword.  The CHyperText's 
  14. clickCmd is then sent to itsSupervisor.  You can find out what the hyperword
  15. was by checking the lastHyperword data member.  AdjustCursor() is also
  16. supported to provide more visual feedback when the cursor is over a hyperword.
  17.  
  18. CHyperText also comes with a TMPL in Resorcerer format, to edit and create HyTx
  19. panes in your dialogs, and load them by AddOverloadItem() through the IViewTemp()
  20. methods.
  21.  
  22. See the enclosed demo program and source for an example on how to use this class.
  23.  
  24. NOTE:  To compile and run this demo you must place the folder "CHyperText Folder"
  25. in the Symantec C++ for Macintosh Tree along with CStringArray.cp and CStringArray.h
  26. (which came with the NewClassDemo in your Symantec C++ package), or you will get 
  27. errors that the file can't be found.
  28.  
  29. This project is also an excellent example of how to create a dialog based TCL
  30. shell application.
  31.  
  32. Enjoy!
  33.  
  34. Marty Wacher
  35.  
  36. comments/complaints
  37.  
  38. mrw@welchgate.welch.jhu.edu
  39. afamarty@aol.com